package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.BtyPerformancePoint;
import cn.stylefeng.guns.sys.modular.system.model.params.BtyPerformanceMonthInformationParam;
import cn.stylefeng.guns.sys.modular.system.model.params.BtyPerformancePointParam;
import cn.stylefeng.guns.sys.modular.system.model.params.BtyPerformanceReceiveParam;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyDdpageByAccountTime;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyPerformanceMonthInformationResult;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyPerformancePointResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wjk
 * @since 2022-02-10
 */
public interface BtyPerformancePointMapper extends BaseMapper<BtyPerformancePoint> {

    /**
     * 获取列表
     *
     * @author wjk
     * @Date 2022-02-10
     */
    List<BtyPerformancePointResult> customList(@Param("paramCondition") BtyPerformancePointParam paramCondition);

    /**
     * 获取map列表
     *
     * @author wjk
     * @Date 2022-02-10
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") BtyPerformancePointParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author wjk
     * @Date 2022-02-10
     */
    Page<BtyPerformancePointResult> customPageList(@Param("page") Page page, @Param("paramCondition") BtyPerformancePointParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author wjk
     * @Date 2022-02-10
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") BtyPerformancePointParam paramCondition);

    Page<BtyDdpageByAccountTime> pageByDdPhone(@Param("page") Page page, @Param("account")String account, @Param("param")BtyPerformanceReceiveParam param);

    Page<BtyDdpageByAccountTime> pageByDdzPhone(@Param("page") Page page, @Param("account")String account, @Param("param")BtyPerformanceReceiveParam param);

    Page<BtyDdpageByAccountTime> pageByYyjlPhone(@Param("page") Page pageContext,@Param("account") String account,@Param("param") BtyPerformanceReceiveParam param);




    /**
     * 16 运营经理，待审核，已驳回，已通过的店列表
     *
     * @author wjk
     * @Date 2022-04-06
     */

    IPage<BtyDdpageByAccountTime> tyyjlgetShopStateListPage(@Param("page") Page pageContext,@Param("account") String account,@Param("param") BtyPerformanceReceiveParam param);

    int ddAllCon(@Param("account") String account, @Param("time") String time, @Param("sta") String sta);

    int ddCon(@Param("account") String account, @Param("time") String time);

    int ddzAllCon(@Param("account") String account, @Param("time") String time, @Param("sta") String sta);

    int ddzCon(@Param("account") String account, @Param("time") String time);

    IPage<BtyDdpageByAccountTime> ddAllList(@Param("page") Page pageContext, @Param("account") String account, @Param("time") String time, @Param("sta") String sta);

    IPage<BtyDdpageByAccountTime> ddzAllList(@Param("page") Page pageContext, @Param("account") String account, @Param("time") String time, @Param("sta") String sta);

    /**
     * 13  查看总驳回原因
     *
     * @author wjk
     * @Date 2022-04-07
     */
    BtyPerformanceMonthInformationResult tddgetDismissedTotal(@Param("param") BtyPerformanceMonthInformationParam param);
}
